package com.example.gaokao.controller.front;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping("/")
public class IndexController {
    @RequestMapping("/")
    @ResponseBody//不返回视图解析器，json格式
    public  String home(){
        return "首页";
    }
}
